package com.hyy.api.domain.provider.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.hyy.api.domain.provider.ProvProvider;
import com.hyy.common.excel.annotation.ExcelDictFormat;
import com.hyy.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.List;


/**
 * 上游供应商视图对象 prov_provider
 *
 * @author ruoyi
 * @date 2025-05-19
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = ProvProvider.class)
public class ProvProviderVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 供应商ID
     */
    @ExcelProperty(value = "供应商ID")
    private Long id;

    /**
     * 供应商名称
     */
    @ExcelProperty(value = "供应商名称")
    private String name;

    /**
     * 供应商编码
     */
    @ExcelProperty(value = "供应商编码")
    private String code;

    /**
     * 供应商状态
     */
    @ExcelProperty(value = "供应商状态", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "prov_provider_status")
    private Integer status;

    /**
     * 说明
     */
    @ExcelProperty(value = "说明")
    private String remark;

    /**
     * 接入程序id
     */
    @ExcelProperty(value = "接入程序id")
    private Long apiProgramId;

    /**
     * 关联公司
     */
    @ExcelProperty(value = "关联公司")
    private Long corporateId;


    private List<ProvApiProgramTemplateVo> templateParams ;

}
